package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GcProjectSbclhtjhdMapper;
import com.ruoyi.gcgl.domain.GcProjectSbclhtjhd;
import com.ruoyi.gcgl.service.IGcProjectSbclhtjhdService;
import com.ruoyi.common.core.text.Convert;

/**
 * 设备材料合同交货单Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-03
 */
@Service
public class GcProjectSbclhtjhdServiceImpl implements IGcProjectSbclhtjhdService 
{
    @Autowired
    private GcProjectSbclhtjhdMapper gcProjectSbclhtjhdMapper;

    /**
     * 查询设备材料合同交货单
     * 
     * @param id 设备材料合同交货单主键
     * @return 设备材料合同交货单
     */
    @Override
    public GcProjectSbclhtjhd selectGcProjectSbclhtjhdById(Long id)
    {
        return gcProjectSbclhtjhdMapper.selectGcProjectSbclhtjhdById(id);
    }

    /**
     * 查询设备材料合同交货单列表
     * 
     * @param gcProjectSbclhtjhd 设备材料合同交货单
     * @return 设备材料合同交货单
     */
    @Override
    public List<GcProjectSbclhtjhd> selectGcProjectSbclhtjhdList(GcProjectSbclhtjhd gcProjectSbclhtjhd)
    {
        return gcProjectSbclhtjhdMapper.selectGcProjectSbclhtjhdList(gcProjectSbclhtjhd);
    }

    /**
     * 新增设备材料合同交货单
     * 
     * @param gcProjectSbclhtjhd 设备材料合同交货单
     * @return 结果
     */
    @Override
    public int insertGcProjectSbclhtjhd(GcProjectSbclhtjhd gcProjectSbclhtjhd)
    {
        return gcProjectSbclhtjhdMapper.insertGcProjectSbclhtjhd(gcProjectSbclhtjhd);
    }

    /**
     * 修改设备材料合同交货单
     * 
     * @param gcProjectSbclhtjhd 设备材料合同交货单
     * @return 结果
     */
    @Override
    public int updateGcProjectSbclhtjhd(GcProjectSbclhtjhd gcProjectSbclhtjhd)
    {
        return gcProjectSbclhtjhdMapper.updateGcProjectSbclhtjhd(gcProjectSbclhtjhd);
    }

    /**
     * 批量删除设备材料合同交货单
     * 
     * @param ids 需要删除的设备材料合同交货单主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSbclhtjhdByIds(String ids)
    {
        return gcProjectSbclhtjhdMapper.deleteGcProjectSbclhtjhdByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除设备材料合同交货单信息
     * 
     * @param id 设备材料合同交货单主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSbclhtjhdById(Long id)
    {
        return gcProjectSbclhtjhdMapper.deleteGcProjectSbclhtjhdById(id);
    }
}
